﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;

namespace Boggle
{
    public class BoggleInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(
                Classes.FromThisAssembly()
                .BasedOn<IBoggleDictionary>().WithServiceDefaultInterfaces().LifestyleSingleton(),
                Classes.FromThisAssembly()
                .BasedOn<IBoggleSolver>().WithServiceDefaultInterfaces()
            );
        }
    }
}
